class Bubblesort:
        def __init__(self, A):
                self.A = A
                pass

        def bubblesort(self):
            for i in range(1, len(self.A)+1):
                for j in reversed(range(i-1, len(self.A))):
                    if self.A[j]<self.A[j-1]:
                        self.A[j], self.A[j-1] = self.A[j-1], self.A[j]
